package com.iotechn.unimall.data.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.iotechn.unimall.data.domain.FinancePayableDO;
import com.iotechn.unimall.data.dto.purchase.FinancePayablePurchaseDTO;
import com.iotechn.unimall.data.dto.purchase.RepaymentDetailsDTO;
import com.iotechn.unimall.data.dto.warehouse.SupplierPayDTO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;


/**
 * 应付款账单
 * 
 * @author hct
 * @email 77802226@qq.com
 * @date 2020-03-26 16:18:07
 */
public interface FinancePayableMapper extends BaseMapper<FinancePayableDO> {

    public List<SupplierPayDTO> selectPayList(@Param("supplierNo") String supplierNo, @Param("supplierName") String supplierName,@Param("warehouseIds") List<Long> warehouseIds, @Param("offset") Integer offset, @Param("limit") Integer limit);

    public Long selectPayListCount(@Param("supplierNo") String supplierNo, @Param("supplierName") String supplierName,@Param("warehouseIds") List<Long> warehouseIds);

    public List<RepaymentDetailsDTO> getRepayment();

    public Integer selectTodayTotalPrice(@Param("startTime") Date startTime, @Param("endTime")Date endTime);

    public List<FinancePayableDO> selectFinancePayBySupplier();

    public List<FinancePayableDO> selectFinancePayByDay();

    public List<FinancePayablePurchaseDTO> getArrearsDetails(FinancePayableDO financePayableDO);
}
